import axios from '@u/request'

// 获取首页banner
const getHomeBanner = (params = {}) => {
  return axios.get('/banner/list', {params})
}
// 获取首页 宫格分类 /shop/goods/category/all
const getCates = (params = {}) => {
  return axios.get('/shop/goods/category/all', {params})
}
// 首页推荐商品列表 /shop/goods/list/v2
const getItems = (params = {}) => {
  return axios.post('/shop/goods/list/v2', params)
}
export {
  getHomeBanner,
  getCates,
  getItems
}